// Copyright © SixtyFPS GmbH <info@slint-ui.com>
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-commercial

Test := Rectangle {
    property<angle> angle: 0.25turn;
    property<bool> test: abs((angle - 0.5rad * 3.1415926535)/1grad) < 0.00001;
}

/*
```cpp
auto handle = Test::create();
const Test &t = *handle;
assert_eq(t.get_angle(), 90.);
assert_eq(t.get_test(), true);

t.set_angle(91.);
assert_eq(t.get_angle(), 91.);
assert_eq(t.get_test(), false);
```


```rust
let t = Test::new().unwrap();
assert_eq!(t.get_angle(), 90.);
assert_eq!(t.get_test(), true);

t.set_angle(91.);
assert_eq!(t.get_angle(), 91.);
assert_eq!(t.get_test(), false);
```

```js
var t = new slint.Test({});
assert.equal(t.angle, 90);
assert(t.test);
t.angle = 91;
assert.equal(t.angle, 91);
assert(!t.test);

```
*/
